package org.weed.remote.network.client;

import java.io.InputStream;
import java.io.StringReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.Scanner;

public class StreamClient implements Runnable {
	private URL url;
	public StreamClient(String url) throws MalformedURLException {
		this.url = new URL(url);
	}
	
	public void run() {
		try {
			URLConnection connection = url.openConnection();
			InputStream input = connection.getInputStream();
			String encoding = connection.getContentEncoding();
			if (encoding == null) {
				encoding = "UTF-8";
			}
			
		
		} catch (Exception e) {
			
		}
		
	}
	
	public static void main(String[] args) {
		String a = "-325\n";
		Scanner b = new Scanner(a);
		b.useDelimiter("\n");
		System.out.println("@"+b.nextDouble());
	}



}
